package com.zzj.service.impl;

import com.zzj.bean.TabRole;
import com.zzj.dao.TabRoleMapper;
import com.zzj.service.TabRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * InnoDB free: 8192 kB 服务实现类
 * </p>
 *
 * @author 花
 * @since 2022-03-04
 */
@Service
public class TabRoleServiceImpl extends ServiceImpl<TabRoleMapper, TabRole> implements TabRoleService {

    @Resource
    private TabRoleMapper roleMapper;

    @Override
    public List<TabRole> findRoleByUserId(String uid) {
        return roleMapper.findRoleById(uid);
    }
}
